package com.example.home.state

import com.example.common.entity.CommendEntity
import com.example.common.entity.SimpleVideoEntity
import com.example.common.state.BaseUIState
import com.example.home.entity.SimpleTypeEntity

sealed class HomeUiState :BaseUIState(){
    object LoadEmpty:HomeUiState()
    //分类
    data class LoadSimpleTypeSuccess(val list:List<SimpleTypeEntity>):HomeUiState()
    data class LoadSimpleTypeFail(val msg:String):HomeUiState()
    //数据
    data class LoadSimpleVideoSuccess(val list: List<SimpleVideoEntity>): HomeUiState()
    data class LoadSimpleVideoFail(val msg: String): HomeUiState()
    data class LoadVideoCommendSuccess(val list:List<CommendEntity>): HomeUiState()
    data class LoadVideoCommendFail(val msg: String): HomeUiState()
    data class PublishVideoCommendSuccess(val list: List<CommendEntity>): HomeUiState()
    data class PublishVideoCommendFail(val msg: String): HomeUiState()
}